<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: WIN10
  Date: 2020/5/20
  Time: 0:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page isELIgnored="false" contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>简历列表</title>
</head>
<body>
<fieldset>
    <a href="/resume">添加</a>
    <table>
        <tr>
            <td>ID</td>
            <td>姓名</td>
            <td>电话</td>
            <td>地址</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${resumes}" var="resume">
            <tr>
                <td>${resume.id}</td>
                <td>${resume.name}</td>
                <td>${resume.phone}</td>
                <td>${resume.address}</td>
                <td><a href="/resume?id=${resume.id}">编辑</a> &nbsp;&nbsp;&nbsp;&nbsp;
                    <form action="/resume-del" method="post">
                        <input name="id" value="${resume.id}" type="text" style="display: none" />
                        <input type="submit" value="删除">
                    </form>
                </td>
            </tr>
        </c:forEach>
    </table>
</fieldset>
</body>
</html>
